import { Component } from 'react';

const loadinghoc = (Com) => {
    return class NewCom extends Component {
        render() {
            // console.log(this.props.schoolArr);
            return <>
                {
                    this.props.schoolArr.length > 0 ? <Com {...this.props}></Com> : <div>loading..........</div>
                }

            </>
        }
    }
}
export default loadinghoc